<template>
  <div class="holo-container">
    <Header class="holo-header" />
    <div id="cesiumContainer" class="cesium-container"></div>
    <router-view></router-view>
  </div>
</template>

<script lang="ts">
import { defineComponent, onMounted } from "vue";
import Header from "@/components/header/index.vue";
export default defineComponent({
  components: {
    Header
  },
  setup() {
    onMounted(() => {
      window.Freedo.FdApp.createDefaultViewer("cesiumContainer");
    });
  }
});
</script>

<style lang="less" scoped>
.holo-container {
  color: white;
}
.cesium-container {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}
.holo-header {
  position: absolute;
  top: 0;
  z-index: 1;
}
</style>
